import request from '@/utils/request'
const uri = '/warehouseReceipt'

// 毛坯入库 分页
export function warehouseReceipt (query) {
    return request({
        url: `${uri}`,
        method: 'get',
        params: query
    })
}

// 添加毛坯入库
export function addWarehouseReceipt (data) {
    return request({
        url: `${uri}`,
        method: 'post',
        data: data
    })
}

// 毛坯入库 列表 不分页
export function list (query) {
    return request({
        url: `${uri}/list`,
        method: 'get',
        params: query
    })
}

export function updateWarehouseReceipt (query) {
    return request({
        url: '/partPlanIncoming',
        method: 'put',
         query
    })
}
